package com.zf.lease.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zf.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 用户和契约的关系对象 customer_contract
 *
 * @author ruoyi
 * @date 2024-10-07
 */
@TableName(resultMap = "com.zf.lease.mapper.CustomerContractMapper.CustomerContractResult")
public class CustomerContract extends BaseEntity
        {
private static final long serialVersionUID = 1L;

        /** 契约ID */
            @TableId(value = "contract_id",type = IdType.AUTO)
        private Long contractId;

        /** 用户ID */
        private Long customerId;

        /**
         * 删除标志（0代表存在 1代表删除）
         */
        private Integer delFlag;

        public Integer getDelFlag() {
            return delFlag;
        }

        public void setDelFlag(Integer delFlag) {
            this.delFlag = delFlag;
        }

            public void setContractId(Long contractId)
        {
            this.contractId = contractId;
        }

        public Long getContractId()
        {
            return contractId;
        }
        public void setCustomerId(Long customerId)
        {
            this.customerId = customerId;
        }

        public Long getCustomerId()
        {
            return customerId;
        }

@Override
public String toString() {
    return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
        .append("contractId", getContractId())
        .append("customerId", getCustomerId())
            .toString();
}
        }